package com.teamwork.module03.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.teamwork.common.entity.common.User;
import com.teamwork.common.entity.common.requestentity.ReqUserBody;
import com.teamwork.common.result.Result;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface UserService extends IService<User> {
    Result pageUser();

    User getByUsername(String username);

    User getByEmail(String email);

    Result pageSelect(ReqUserBody reqUserBody);

    Result deleteById(Integer id);

    Result deleteBuchByIds(Integer[] ids);

    Result getMineByUid(Integer userid);

    Result getUserInfo(Integer userid);

    Result editUserInfo(User user);

    Result updateUser(Integer userid, MultipartFile img, String username,
                      String password,String nickname, String email, String phone) throws IOException;

    Result insertUser(Integer userid, MultipartFile img, String username,
                      String nickname, String password, String email, String phone, Integer role) throws IOException;
}